fix irrelevant booboo in 23cb08f17.
authortsteven4 <tsteven4@gmail.com>
Tue, 10 Jul 2018 15:53:07 +0000 (09:53 -0600)
committertsteven4 <tsteven4@gmail.com>
Tue, 10 Jul 2018 15:53:07 +0000 (09:53 -0600)
This only mattered if NEW_STRINGS wasn't defined,
and it always is, except if running cppcheck.

gdb.cc

diff --git a/gdb.cc b/gdb.cc
index e8c06eb64b01b49b942c02bc50468cbe6a3e525c..16d330b22f5847ec0517c437e175d81be24020c9 100644 (file)
--- a/gdb.cc
+++ b/gdb.cc
@@ -1623,7 +1623,7 @@ write_waypoint_cb(const Waypoint* refpt)
 // but, but, casting away the const here is wrong...
   (const_cast<Waypoint*>(refpt))->shortname = refpt->shortname.trimmed();
 #else
-  rtrim(const_cast<Waypoint*>(refpt))->shortname);
+  rtrim((const_cast<Waypoint*>(refpt))->shortname);
 #endif
   Waypoint* test = gdb_find_wayptq(&wayptq_out, refpt, 1);